<div id="vehicle_rent_records_div">
    <%    unless tour_group.vehicle.nil?
    use_days = tour_group.vehicle.vehicle_rent_records.collect{|x| x.day}
    all_days = (tour_group.during_start..tour_group.during_end).to_a unless tour_group.during_start.nil? || tour_group.during_end.nil?
    all_days ||= use_days
    for d in all_days
    use = use_days.include?(d) %>
    <div class="<%= use ? 'vehicle_use' : 'vehicle_unuse'%>" title="<%=d.month%>月<%= d.day%>日" onclick="edit_vehicle_rent_record(this);">
        <label>
            <%= d.day %>
        </label>
        <input name="vehicle[vehicle_rent_record_days][]" type="hidden" value="<%= use ? 1 : 0%>|<%=d%>" />
        <p>
            <%= use ? '用车' : '未用' %>
        </p>
    </div>
    <% end %>
    <% end %>
</div>
